﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABELGX
{
    /// <summary>
    /// 通信端口设置
    /// </summary>
    [Serializable]
    public class PortSet
    {
        /// <summary>
        /// 串口/网口
        /// </summary>
        public bool IsCom { get; set; } = false;
        public bool Send { get; set; } = true;
        public bool Receive { get; set; } = true;
        public string ComName { get; set; } = "COM1";
        public int BaudRate { get; set; } = 115200;
        public string LocalIP { get; set; } = "";
        public int LocalPort { get; set; }
        public string RemoteIP { get; set; } = "";
        public int RemotePort { get; set; }
    }
}
